\hypertarget{classsock_1_1base_1_1_exception}{}\section{sock\+:\+:base\+:\+:Exception Class Reference}
\label{classsock_1_1base_1_1_exception}\index{sock\+::base\+::\+Exception@{sock\+::base\+::\+Exception}}


异常类  




{\ttfamily \#include $<$exception.\+h$>$}

Inheritance diagram for sock\+:\+:base\+:\+:Exception\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classsock_1_1base_1_1_exception}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classsock_1_1base_1_1_exception_a381ac0f784ffa0611e5638efe2f69497}{Exception} (void)
\begin{DoxyCompactList}\small\item\em 构造函数 \end{DoxyCompactList}\item 
\hyperlink{classsock_1_1base_1_1_exception_ac96c45c4e7e820e77b2751f7c129f787}{Exception} (int \hyperlink{classsock_1_1base_1_1_exception_ad54a96e64930816281ef5322c2ea7515}{code})
\begin{DoxyCompactList}\small\item\em 构造函数 \end{DoxyCompactList}\item 
\hyperlink{classsock_1_1base_1_1_exception_a53addde8409112cc7ac95086a7ae4999}{Exception} (const char $\ast$errmsg)
\begin{DoxyCompactList}\small\item\em 构造函数 \end{DoxyCompactList}\item 
\hyperlink{classsock_1_1base_1_1_exception_a295d19c4871c116d5ecee25f77a38e95}{Exception} (int \hyperlink{classsock_1_1base_1_1_exception_ad54a96e64930816281ef5322c2ea7515}{code}, const char $\ast$errmsg)
\begin{DoxyCompactList}\small\item\em 构造函数 \end{DoxyCompactList}\item 
\hyperlink{classsock_1_1base_1_1_exception_afeb97c421adf460c70903ec07b12fcdc}{Exception} (const \hyperlink{classsock_1_1base_1_1_exception}{Exception} \&exception)
\begin{DoxyCompactList}\small\item\em 构造函数 \end{DoxyCompactList}\item 
virtual \hyperlink{classsock_1_1base_1_1_exception_aa7eefb5a6efa0a981393a29a299f387f}{$\sim$\+Exception} (void)
\begin{DoxyCompactList}\small\item\em 析构函数 \end{DoxyCompactList}\item 
int \hyperlink{classsock_1_1base_1_1_exception_ad54a96e64930816281ef5322c2ea7515}{code} (void) const 
\begin{DoxyCompactList}\small\item\em 获取错误码 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
异常类 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classsock_1_1base_1_1_exception_a381ac0f784ffa0611e5638efe2f69497}{}\index{sock\+::base\+::\+Exception@{sock\+::base\+::\+Exception}!Exception@{Exception}}
\index{Exception@{Exception}!sock\+::base\+::\+Exception@{sock\+::base\+::\+Exception}}
\subsubsection[{Exception(void)}]{\setlength{\rightskip}{0pt plus 5cm}Exception\+::\+Exception (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{classsock_1_1base_1_1_exception_a381ac0f784ffa0611e5638efe2f69497}


构造函数 

\hypertarget{classsock_1_1base_1_1_exception_ac96c45c4e7e820e77b2751f7c129f787}{}\index{sock\+::base\+::\+Exception@{sock\+::base\+::\+Exception}!Exception@{Exception}}
\index{Exception@{Exception}!sock\+::base\+::\+Exception@{sock\+::base\+::\+Exception}}
\subsubsection[{Exception(int code)}]{\setlength{\rightskip}{0pt plus 5cm}Exception\+::\+Exception (
\begin{DoxyParamCaption}
\item[{int}]{code}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [explicit]}}\label{classsock_1_1base_1_1_exception_ac96c45c4e7e820e77b2751f7c129f787}


构造函数 


\begin{DoxyParams}{Parameters}
{\em code} & 错误码 \\
\hline
\end{DoxyParams}
\hypertarget{classsock_1_1base_1_1_exception_a53addde8409112cc7ac95086a7ae4999}{}\index{sock\+::base\+::\+Exception@{sock\+::base\+::\+Exception}!Exception@{Exception}}
\index{Exception@{Exception}!sock\+::base\+::\+Exception@{sock\+::base\+::\+Exception}}
\subsubsection[{Exception(const char $\ast$errmsg)}]{\setlength{\rightskip}{0pt plus 5cm}Exception\+::\+Exception (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{errmsg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [explicit]}}\label{classsock_1_1base_1_1_exception_a53addde8409112cc7ac95086a7ae4999}


构造函数 


\begin{DoxyParams}{Parameters}
{\em errmsg} & 错误消息 \\
\hline
\end{DoxyParams}
\hypertarget{classsock_1_1base_1_1_exception_a295d19c4871c116d5ecee25f77a38e95}{}\index{sock\+::base\+::\+Exception@{sock\+::base\+::\+Exception}!Exception@{Exception}}
\index{Exception@{Exception}!sock\+::base\+::\+Exception@{sock\+::base\+::\+Exception}}
\subsubsection[{Exception(int code, const char $\ast$errmsg)}]{\setlength{\rightskip}{0pt plus 5cm}Exception\+::\+Exception (
\begin{DoxyParamCaption}
\item[{int}]{code, }
\item[{const char $\ast$}]{errmsg}
\end{DoxyParamCaption}
)}\label{classsock_1_1base_1_1_exception_a295d19c4871c116d5ecee25f77a38e95}


构造函数 


\begin{DoxyParams}{Parameters}
{\em code} & 错误码 \\
\hline
{\em errmsg} & 错误消息 \\
\hline
\end{DoxyParams}
\hypertarget{classsock_1_1base_1_1_exception_afeb97c421adf460c70903ec07b12fcdc}{}\index{sock\+::base\+::\+Exception@{sock\+::base\+::\+Exception}!Exception@{Exception}}
\index{Exception@{Exception}!sock\+::base\+::\+Exception@{sock\+::base\+::\+Exception}}
\subsubsection[{Exception(const Exception \&exception)}]{\setlength{\rightskip}{0pt plus 5cm}Exception\+::\+Exception (
\begin{DoxyParamCaption}
\item[{const {\bf Exception} \&}]{exception}
\end{DoxyParamCaption}
)}\label{classsock_1_1base_1_1_exception_afeb97c421adf460c70903ec07b12fcdc}


构造函数 


\begin{DoxyParams}{Parameters}
{\em exception} & 异常对象 \\
\hline
\end{DoxyParams}
\hypertarget{classsock_1_1base_1_1_exception_aa7eefb5a6efa0a981393a29a299f387f}{}\index{sock\+::base\+::\+Exception@{sock\+::base\+::\+Exception}!````~Exception@{$\sim$\+Exception}}
\index{````~Exception@{$\sim$\+Exception}!sock\+::base\+::\+Exception@{sock\+::base\+::\+Exception}}
\subsubsection[{$\sim$\+Exception(void)}]{\setlength{\rightskip}{0pt plus 5cm}Exception\+::$\sim$\+Exception (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classsock_1_1base_1_1_exception_aa7eefb5a6efa0a981393a29a299f387f}


析构函数 



\subsection{Member Function Documentation}
\hypertarget{classsock_1_1base_1_1_exception_ad54a96e64930816281ef5322c2ea7515}{}\index{sock\+::base\+::\+Exception@{sock\+::base\+::\+Exception}!code@{code}}
\index{code@{code}!sock\+::base\+::\+Exception@{sock\+::base\+::\+Exception}}
\subsubsection[{code(void) const }]{\setlength{\rightskip}{0pt plus 5cm}int sock\+::base\+::\+Exception\+::code (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1base_1_1_exception_ad54a96e64930816281ef5322c2ea7515}


获取错误码 



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
E\+:/git/sock/sock/base/\hyperlink{exception_8h}{exception.\+h}\item 
E\+:/git/sock/src/base/\hyperlink{exception_8cc}{exception.\+cc}\end{DoxyCompactItemize}
